import request from '@/utils/request';

// 我的申请列表
export function queryApplyForm(params) {
    return request('/api/workflowweb/approve/v1/initiator/list', {
        method: 'POST',
        data: params
    });
}

// 获取当前登陆人所分配的流程模板列表
export function queryFlowType(params) {
    return request('/api/workflowweb/deploy/v1/getgroupbycategory', {
        method: 'POST',
        data: params
    });
}

// 撤销操作
export function revokeProcess(params) {
    return request('/api/workflowweb/approve/v1/revokeProcess', {
        method: 'POST',
        data: params
    });
}

//  审批详情
export async function queryDetail(params) {
    return request(
        '/api/workflowweb/approve/v1/initiator/detail',
        {
            method: 'POST',
            data: params
        }
    );
}
